#! /bin/bash

num=230
zeos_num=10
for file in /media/jjn/文档/record/schools/*
do
    echo $file
    let num+=1

    echo $num
    mkdir /media/jjn/文档/record/fps/$num
    if (("$num" > "9")); then
        zeos_num=7
        echo ">9"
    elif (("$num" > "99"));then
        echo ">99"
        zeos_num=6
    fi
        echo "zeos_num:"$zeos_num
    ffmpeg -i $file -r 0.4 -q:v 2 "/media/jjn/文档/record/fps/$num/"$num%"$zeos_num"d.jpg
done